#ifndef PROXIMITY_SENSOR_CONFIG_H
#define PROXIMITY_SENSOR_CONFIG_H

#include "proximity_sensor_common.h"

// 配置文件路径
#define PROXIMITY_SENSOR_CONFIG_FILE "/etc/proximity_sensor.conf"

// 默认配置
#define DEFAULT_PROXIMITY_SENSOR_1_GPIO "4_A3_d"
#define DEFAULT_PROXIMITY_SENSOR_2_GPIO "2_D4_d"

// 配置结构体
typedef struct {
    char sensor1_gpio[32];
    char sensor2_gpio[32];
    int polling_interval_ms;
    int error_threshold;
    int enable_debug;
} proximity_sensor_system_config_t;

// 函数声明
int load_proximity_sensor_config(proximity_sensor_system_config_t *config);
int save_proximity_sensor_config(const proximity_sensor_system_config_t *config);
void init_default_proximity_sensor_config(proximity_sensor_system_config_t *config);
int create_proximity_sensor_config_file(void);

#endif /* PROXIMITY_SENSOR_CONFIG_H */ 